home *** CD-ROM | disk | FTP | other *** search
- Path: sn.no!not-for-mail
- From: ilan@sn.no (Ilan Sharoni)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: BitMap problem
- Date: 13 Apr 1996 02:03:22 +0200
- Organization: SN Internett
- Message-ID: <4kmr0a$fph@sinsen.sn.no>
- References: <jdjenpv6k9p.fsf@vesipyssy.cs.hut.fi>
- NNTP-Posting-Host: sinsen.sn.no
- X-Newsreader: THOR 2.0 (SOUP)
-
- On 11-Apr-96 15:02:42, Osma Ahvenlampi (oahvenla@vesipyssy.cs.hut.fi) Wrote:
- >In article <4kfesg$sqe@sinsen.sn.no> ilan@sn.no (Ilan Sharoni) writes:
- >> I AllocBitMap(), link it to a RastPort, Text() a string to the
- >>bitmap (should dump it to the printer latter), FreeBitMap() it,
-
- >What RastPort, and how did you initialize it?
-
- "Independent" RastPort, and yes.
-
- The problem was with the RectFill() I used to clear the bitmap
- before drawing the text. Though not documented, it probably needs extra
- allocations like the Area functions.
- I replaced it with SetRast(), and the fireworks is gone.
-
- I hope the Text() call is safer. It is an
- almost-impossible-to-detect-bug, since the crash is very remote
- from the function call.
-
-
-
- ilan
-
-
-